<?php print $controller->render('views/includes/header.php');?>

<p>Your old link was:</p>
<p><code class='oldurl'><?php echo $shorturl->oldurl; ?></code></p>

<?php if ($shorturl->error) {?>
	<p class='error'><?php echo $shorturl->error; ?></p>
<?php } ?>
<?php if ($shorturl->message) {?>
	<p class='message'><?php echo $shorturl->message; ?></p>
<?php } ?>
<h2>The new shorter URL is:</h2>
<p id="urltea_p"><input type='text' id="urltea" value="<?php echo $shorturl->newurl ?>" /></p>
<p class='inconsequential'><a href="<?php echo $shorturl->newurl ?>" target="_blank">open in new window</a></p>
<div id='clipboardtools' class='hidden'><p><span id="copiedtoclipboard"></span><a id="copyurl" href="#">copy url to clipboard</a></p></div>

<hr />

<p>TIP: follow the urlTea URL with <code>?any-text-you-like</code> to help describe your link!</p>

<hr />

<p><a href="/">Make another shorter URL</a></p>

<?php print $controller->render('views/includes/footer.php');?>